package com.han.gift.entity;


import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * (Department)表实体类
 *
 * @author makejava
 * @since 2023-02-25 00:44:39
 */
@SuppressWarnings("serial")
@TableName("t_department")
public class Department extends Model<Department> {


    @TableField("id")
    private Long id;

    //部门编号
    @TableField("sn")
    private String sn;

    //部门名称
    @TableField("name")
    private String name;

    //部门的上级分类层级id
    @TableField("dir_path")
    private String dirPath;

    //部门状态，0正常，1禁用
    @TableField("state")
    private Integer state;

    //部门管理员，关联Employee表id
    @TableField("manager_id")
    private Long managerId;

    //上级部门
    @TableField("parent_id")
    private Long parentId;

    //部门所属机构(租户)
    @TableField("tenant_id")
    private Long tenantId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDirPath() {
        return dirPath;
    }

    public void setDirPath(String dirPath) {
        this.dirPath = dirPath;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Long getManagerId() {
        return managerId;
    }

    public void setManagerId(Long managerId) {
        this.managerId = managerId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */

    }

